package com.weixing.mall.redis.order;

import cn.hutool.core.date.DatePattern;
import cn.hutool.core.date.DateUtil;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @ClassName OrderPayEnd
 * @Description
 * @Author Small
 * @Date 2020/6/30 16:17
 * @Version 1.0
 **/
@Data
@NoArgsConstructor
public class OrderDivStock {
    private Long orderId;
    private Long itemId;
    private Long actId;
    private int cnt;
    private String putTime;

    public OrderDivStock(Long orderId, Long itemId,Long actId,int cnt) {
        this.orderId = orderId;
        this.itemId = itemId;
        this.actId = actId;
        this.cnt = cnt;
        this.putTime = DateUtil.format(new Date(), DatePattern.NORM_DATETIME_FORMAT);
    }
}
